home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Greatest Childrens Stories Ever Told
/
Greatest_Stories.iso
/
demos
/
funtown
/
demo.dir
/
00050_Script_Scripts 7
< prev
next >
Wrap
Text File
|
1994-11-08
|
3KB
|
84 lines
--òòò Scripts 5
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on go1 whichFrame, whichTextPict, whichMethod
if the frame>=label ( "map" ) then
if the frame<=label ( "map" ) +4 then
exit
end if
end if
global WQ, mode, MS, ML, CV, dontPassIt
if dontPassIt=1 then
set dontPassIt=0
exit
end if
if voidP ( whichTextPict ) then set whichTextPict=char 1 to ( the number of chars in whichFrame -1 ) of whichFrame
if mode=2 then activateChalkboard whichFrame, whichTextPict,"òLearnò"
else if mode>2 and mode<10 then checkResponse the clickOn, whichFrame, whichTextPict, whichMethod
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on goback
global CV
sound stop 1
sound stop 2
puppetTransition 0
go frame ("pos"& CV)
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on checkResponse whichSprite, whichFrame, whichTextPict, whichMethod
if the frame>=label ( "map" ) then
if the frame<=label ( "map" ) +4 then
exit
end if
end if
global QL, WQ, availableQuestions, mode, MS, CV, ML, QC, NQ, NS, DL
global NQ, QA,SameSound, CU
if CU then exit
if voidP(SameSound) then set SameSound=1
if whichSprite=1 then exit
set x=the ink of sprite ( whichSprite )
if x=0 or x=8 then set the ink of sprite ( whichSprite )=4
else set the ink of sprite ( whichSprite )=37
updateStage
startTimer
repeat while the timer<2 or the stillDown
do ( "nothing" )
end repeat
doSound "DooDooDoo"
if MS="Find" or MS="Match" then
set the locV of sprite 44=-abs ( the locV of sprite 44 )
showPatchOther the locH of sprite 1, the locV of sprite 1, 23, 0
end if
updateStage
if mode < 5 then
repeat with x = 1 to 20
if char x of (the name of Cast ( the CastNum of Sprite 43)) = "ò" then
set theNum = (x-1)
exit repeat
end if
end repeat
doSound (char 1 to theNum of (the name of Cast ( the CastNum of Sprite 43)))
end if
put "Question "& WQ& " answered!"
do ( "global WQ" )
if QA < 0 then set QA = 1
else set QA= (QA + 1)
put the name of Cast ( the CastNum of Sprite whichSprite ) into item QA of DL
if WQ >=NQ then
reposition (CV)
weHaveAWinner
else
set WQ=WQ+1
reposition (CV)
end if
end
-- ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
on CheckNumbers
global TCN, mode
if mode = 3 then put the number of lines of field "Find Questions" into TCN
else if mode = 4 then put the number of lines of field "Match Questions" into TCN
else if mode = 5 then put the number of lines of field "Read Questions" into TCN
end